#include "syscalllib.h"

long syscall_intface0(long nr)
{
	long ret;

	API_ENTRY_PARE0(nr, ret);

	return ret;
}

long syscall_intface1(long nr, long pval1)
{
	long ret;

	API_ENTRY_PARE1(nr, ret, pval1);

	return ret;
}

long syscall_intface2(long nr, long pval1, long pval2)
{
	long ret;

	API_ENTRY_PARE2(nr, ret, pval1, pval2);

	return ret;
}

long syscall_intface3(long nr, long pval1, long pval2, long pval3)
{
	long ret;

	API_ENTRY_PARE3(nr, ret, pval1, pval2, pval3);

	return ret;
}

long syscall_intface4(long nr, long pval1, long pval2, long pval3, long pval4)
{
	long ret;

	API_ENTRY_PARE4(nr, ret, pval1, pval2, pval3, pval4);

	return ret;
}

long syscall_intface5(long nr, long pval1, long pval2, long pval3, long pval4, long pval5)
{
	long ret;

	API_ENTRY_PARE5(nr, ret, pval1, pval2, pval3, pval4, pval5);

	return ret;
}

long syscall_intface6(long nr, long pval1, long pval2, long pval3, long pval4, long pval5, long pval6)
{
	long ret;

	API_ENTRY_PARE6(nr, ret, pval1, pval2, pval3, pval4, pval5, pval6);

	return ret;
}

long syscall_intface7(long nr, long pval1, long pval2, long pval3, long pval4, long pval5, long pval6, long pval7)
{
	long ret;

	API_ENTRY_PARE7(nr, ret, pval1, pval2, pval3, pval4, pval5, pval6, pval7);

	return ret;
}

void uexit(int code)
{
	long ret = syscall_intface1(__NR_exit, code);
	(void)ret;
}

long ugetpid(void)
{
	return syscall_intface0(__NR_getpid);
}
